if (match_id == "4067518") {
  let storedData = localStorage.getItem("variableHistory") || [];
  if (_.data.items.length === 0) {
    // 如果没有数据，则初始化一个新的数组
    storedData = [];
  } else {
    // 如果有数据，则解析成数组
    storedData = typeof storedData == "string" ? JSON.parse(storedData) : [];
    storedData = storedData.concat(_.data.items.map(i=>({
        lv:i.lv,
        time:i.time,
        content:i.content,
        uid:i.uid,
        name:i.name
    })));
  }

  // 将更新后的数组存储回localStorage
  localStorage.setItem("variableHistory", JSON.stringify(storedData));
  setInterval(() => {
    window.location.reload();
  }, 300000);
} else if(match_id == "4067550") {
  let storedData = localStorage.getItem("variableHistory1") || [];
  if (_.data.items.length === 0) {
    // 如果没有数据，则初始化一个新的数组
    storedData = [];
  } else {
    // 如果有数据，则解析成数组
    storedData = typeof storedData == "string" ? JSON.parse(storedData) : [];
    storedData = storedData.concat(_.data.items.map(i=>({
        lv:i.lv,
        time:i.time,
        content:i.content,
        uid:i.uid
    })));
  }

  // 将更新后的数组存储回localStorage
  localStorage.setItem("variableHistory1", JSON.stringify(storedData));
  setInterval(() => {
    window.location.reload();
  }, 300000);
}else if(match_id == "4067581") {
  let storedData = localStorage.getItem("variableHistory2") || [];
  if (_.data.items.length === 0) {
    // 如果没有数据，则初始化一个新的数组
    storedData = [];
  } else {
    // 如果有数据，则解析成数组
    storedData = typeof storedData == "string" ? JSON.parse(storedData) : [];
    storedData = storedData.concat(_.data.items.map(i=>({
        lv:i.lv,
        time:i.time,
        content:i.content,
        uid:i.uid
    })));
  }

  // 将更新后的数组存储回localStorage
  localStorage.setItem("variableHistory2", JSON.stringify(storedData));
  setInterval(() => {
    window.location.reload();
  }, 300000);
}
const uids=[4067568,4067571,4067607,4067624,4066625,4066626]
const heimingdan=[5293631,9136956,4623575,7334676]
for (let index = 0; index < uids.length; index++) {
  const curid = uids[index];
  const curidStr=`data${curid}`
  if (match_id == curid) {
    let storedData = localStorage.getItem(curidStr) || [];
    if (_.data.items.length === 0) {
      // 如果没有数据，则初始化一个新的数组
      storedData = [];
    } else {
      // 如果有数据，则解析成数组
      storedData = typeof storedData == "string" ? JSON.parse(storedData) : [];
      storedData = storedData.concat(_.data.itemsfilter(i=>!heimingdan.includes(i.uid)).map(i=>({
          lv:i.lv,
          time:i.time,
          content:i.content,
          uid:i.uid,
          name:i.name
      })));
    }
    // 将更新后的数组存储回localStorage
    localStorage.setItem(curidStr, JSON.stringify(storedData));
    setInterval(() => {
      window.location.reload();
    }, 300000);
  }
}